package com.ccp.dev.form.model;

import com.ccp.dev.core.basic.model.BaseModel;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * 子表权限
 * @author HXD1
 */
public class SubTableRights extends BaseModel {
    /**
     * ID
     */
    protected String  id;
    /**
     * 流程定义ID
     */
    protected String  procDefId;
    /**
     * 节点ID
     */
    protected String  nodeId;
    /**
     * 子表表ID
     */
    protected String  tableId;
    /**
     * 权限类型(1,简单配置,2,脚本)
     */
    protected Long  permissionType;
    /**
     * 权限配置
     */
    protected String  permissionSetting;
    /**
     * 父流程定义ID
     */
    protected String  parentProcDefId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProcDefId() {
        return procDefId;
    }

    public void setProcDefId(String procDefId) {
        this.procDefId = procDefId;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public Long getPermissionType() {
        return permissionType;
    }

    public void setPermissionType(Long permissionType) {
        this.permissionType = permissionType;
    }

    public String getPermissionSetting() {
        return permissionSetting;
    }

    public void setPermissionSetting(String permissionSetting) {
        this.permissionSetting = permissionSetting;
    }

    public String getParentProcDefId() {
        return parentProcDefId;
    }

    public void setParentProcDefId(String parentProcDefId) {
        this.parentProcDefId = parentProcDefId;
    }

    /**
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode()
    {
        return new HashCodeBuilder(-82280557, -700257973)
                .append(this.id)
                .append(this.procDefId)
                .append(this.nodeId)
                .append(this.tableId)
                .append(this.permissionType)
                .append(this.permissionSetting)
                .append(this.parentProcDefId)
                .toHashCode();
    }


    @Override
    public String toString() {
        return "SubTableRights{" +
                "id='" + id + '\'' +
                ", procDefId='" + procDefId + '\'' +
                ", nodeId='" + nodeId + '\'' +
                ", tableId='" + tableId + '\'' +
                ", permissionType=" + permissionType +
                ", permissionSetting='" + permissionSetting + '\'' +
                ", parentProcDefId='" + parentProcDefId + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", updateBy='" + updateBy + '\'' +
                ", tenantId='" + tenantId + '\'' +
                '}';
    }
}
